Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreign Keys with cascading deletes #1261

Merged
merged 16 commits into from
Jun 18, 2019

Conversation

CodingGorilla
Copy link
Contributor

Adding the ability to cascade deletes when creating a foreign key

@CodingGorilla CodingGorilla marked this pull request as ready for review May 8, 2019 17:11
Copy link
Collaborator

@oskardudycz oskardudycz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CodingGorilla changes looks good. Thank you for adding documentation.

I have only two requests for tests:

  • to verify if the rollback statement for foreign key will be properly generated
  • to verify that if someone changed the cascading configuration then script will be properly generated

We had a lot of bugs related to that with indexes before, so I'd like to be 100% sure that we won't introduce them.

Mark Warpool and others added 7 commits June 15, 2019 18:30
Working on updating the foreign key documentation
…meter in favor of using the configuration function

Updating the documentation for cascading deletes and external foreign keys
…ys.md

Co-Authored-By: Oskar Dudycz <oskar.dudycz@gmail.com>
… keys and apply the required changes and rollbacks
Copy link
Collaborator

@oskardudycz oskardudycz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • added tests for schema changes,
  • acceptance tests for documents with foreign keys,
  • fixed bugs found by tests

Copy link
Member

@mysticmind mysticmind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oskardudycz Changes look good to me except for few typos in the unit test method names, left a comment.

src/Marten.Testing/Acceptance/foreign_keys.cs Outdated Show resolved Hide resolved
@mysticmind mysticmind requested a review from jokokko June 17, 2019 07:24
@mysticmind
Copy link
Member

With regards to failing build, it is due to a random blinking test pertaining to Marten.Testing.Linq.query_with_dates_Tests.can_select_DateTimeOffset_and_will_return_localtime

@oskardudycz
Copy link
Collaborator

@mysticmind as discussed, I'll try to tackle that in separate PR, as this blinker is not related to this PR.

@CodingGorilla
Copy link
Contributor Author

@oskardudycz Looks good 👍 Thanks again for finishing this up for me.

@oskardudycz oskardudycz merged commit 1fc1258 into JasperFx:master Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants